<template>
  <div class="polygon_tab polygon_tab_list">
    <div class="p_tab_title">弱源清单系统</div>
    <div class="polygon_tab_content">
      <div class="tab_row">
        <div class="row_icon"></div>
        <div class="row_mid">楼顶灰尘</div>
        <div class="row_r">******位置</div>
      </div>

      <div class="tab_row">
        <div class="row_icon"></div>
        <div class="row_mid">厕所排氨口</div>
        <div class="row_r">******位置</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'PolygonTabList',
  components: {},
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss">
@keyframes icon_fadeIn {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.polygon_tab_list {
  position: absolute;
  top: 445px;
  left: 10px;
  height: 321px;
  width: 487px;
  background-image: url('../../assets/img/polygon_3.png');
  background-size: contain;

  &:hover {
    filter: drop-shadow(0 0 20px rgba(14, 166, 229, 0.5));
    transform: translate3d(10px, -10px, 20px) scale(1.01);
    perspective: 500px;
  }

  .polygon_tab_content {
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    align-items: center;
  }

  .tab_row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    width: 330px;
    font-size: 16px;

    background: linear-gradient(to right, rgba(78, 143, 210, 0.3), rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation-name: gradientBG;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-fill-mode: backwards;
    animation-timing-function: linear;

    .row_icon {
      // position: absolute;
      // left: 0;
      // top: 0;
      align-self: flex-end;
      height: 92px;
      width: 126px;
      transform: translateX(-60px);

      background-image: url('../../assets/img/list_row_icon.png');
      background-size: contain;

      animation-name: icon_fadeIn;
      animation-duration: 3s;
      animation-iteration-count: infinite;
      animation-fill-mode: backwards;
      animation-timing-function: ease;
    }

    .row_mid {
      color: #bce0f3;
      text-align: center;
      transform: translateX(-40px);
    }

    .row_r {
      color: #ffe55b;
      text-align: right;
    }
  }
}
</style>
